package com.project.visuallinks.client;

import java.util.ArrayList;


public class Contact {
	private String strName = new String(); 
	private ArrayList<Tag> tagList = new ArrayList<Tag>();
	private int selectedTag;
	private int high, low, medium;
	
	private Contact() {}
	
	private static class ContactHolder {
		private static final Contact INSTANCE = new Contact();
	}
	
	public static Contact getContact() {
		return ContactHolder.INSTANCE;
	}
	
	public ArrayList<Tag> getTagList() {
		return tagList;
	}
	
	public Contact(String name){
		strName = name;
	}
	
	public void addTag(Tag tag)
	{
		tagList.add(tag);
	}
	
	public void deleteTag(int index)
	{
		tagList.remove(index);
	}
	
	public Tag getTag(int index)
	{
		return tagList.get(index);
	}
	
	public int getSelectedTag() {
		return selectedTag;
	}
	
	public void setSelectedTag(int i) {
		selectedTag = i;
	}

	public void setName(String text) {
		strName = text;
	}
	
	public String getName()
	{
		return strName;
	}
	
	public int getTagListSize()
	{
		return tagList.size();
	}

	public void clear() {
		tagList.clear();
		selectedTag = -1;
	}

	public void setMedium(int medium) {
		this.medium = medium;
	}

	public int getMedium() {
		return medium;
	}

	public void setLow(int low) {
		this.low = low;
	}

	public int getLow() {
		return low;
	}

	public void setHigh(int high) {
		this.high = high;
	}

	public int getHigh() {
		return high;
	}
}
